package com.hqu.environment.dao;

import com.hqu.environment.dto.NewsDTO;
import com.hqu.environment.dto.NewsUserDTO;

import java.util.List;

/**
 * @Description: 消息dao层
 * @Date: 2019/04/12 16:03
 * @Author: 邓勇嘉
 **/
public interface NewsDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(NewsDTO record);

    NewsDTO selectByPrimaryKey(Integer id);

    List<NewsDTO> selectList(NewsDTO record);

    int updateByPrimaryKeySelective(NewsDTO record);

    int insertNewsUser(NewsUserDTO newsUserDTO);

    List<NewsDTO> getNewsListByUserId(Integer userId);

    NewsDTO selectLatestNews(NewsDTO record);
}
